package
{
	import de.nulldesign.nd2d.display.Node2D;
	import de.nulldesign.nd2d.display.Scene2D;

	public class ND2DScene extends Scene2D implements IScene
	{
		public function ND2DScene()
		{
		}
		
		public function addToScene(child:ISprite):void{
			this.addChild(child as ND2DSprite);
		}
		
		public function addToSceneAt(child:ISprite, loc:int):void{
			addChildAt(child as Node2D, loc);
		}
		
		public function getNumChildren():int{
			return numChildren;
		}
		
		public function getChildSpriteAt(loc:int):ISprite{
			return getChildAt(loc) as ISprite;
		}
		
		public function swapChildrenSprites(sprite1:ISprite, sprite2:ISprite):void{
			swapChildren(sprite1 as Node2D, sprite2 as Node2D);
		}
		
		public function removeFromScene(sprite:ISprite):void{
			removeChild(sprite as Node2D);
		}
	}
}